#include <QtGui>
#include <QRect>

#include "curvedialog.h"
#include "curvewidget.h"
#include "ui_curvedialog.h"

CurveDialog::CurveDialog(QWidget *parent) :
    QTabWidget(parent),
    ui(new Ui::CurveDialog)
{
    ui->setupUi(this);

    curveWidget=new CurveWidget;
    ui->horizontalLayout_2->addWidget(curveWidget);


}

CurveDialog::~CurveDialog()
{
    delete ui;
    delete curveWidget;
}

void CurveDialog::setPWData(const vector<double> &pw)
{
    curveWidget->pwdata=pw;
//    QVector pwd;
//    pwd.push_back(pw[0]);
}
